#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

#AC_PREREQ(2.61)
AC_INIT(BotCalk.cpp)
AM_INIT_AUTOMAKE(botcalk,0.10)
AC_CONFIG_SRCDIR([BotCalk.h])
#AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP

# Checks for libraries.

pkg_modules="gloox >= 0.9"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
PACKAGE_LIBS="-lgloox -lpthread"
AC_SUBST(PACKAGE_LIBS)

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h locale.h stdlib.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_SIZE_T

# Checks for library functions.
AC_CHECK_FUNCS([mkfifo])

AC_OUTPUT(Makefile)
